/*()
 * Frm_Application.java
 *
 * Created on 5 avril 2008, 23:57
 */

package gui;

import IBO.IEmploye;
import IBO.IEmployeInterne;
import IBO.IIntervention;
import IBO.IRole;
import IBO.ITechnicien;
import IGUI.FrameRemote;
import IGUI.Publisher;
import IGUI.Subscriber;
import IUSECASE.IUC_Factory;
import boerrors.CodePostalMinimumMultiplicityException;
import boerrors.RoleMinimumMultiplicityException;
import boerrors.TechnicienMinimumMultiplicityException;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.LinearGradientPaint;
import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import org.jdesktop.swingx.painter.CompoundPainter;
import org.jdesktop.swingx.painter.GlossPainter;
import org.jdesktop.swingx.painter.GlossPainter;
import org.jdesktop.swingx.painter.MattePainter;
import org.jdesktop.swingx.painter.Painter;
import org.jdesktop.swingx.painter.PinstripePainter;
import java.lang.reflect.Proxy;
import javax.swing.SpringLayout.Constraints;

/**
 *
 * @author  olivierm
 */
public class Frm_Application extends javax.swing.JFrame implements Subscriber, Serializable, FrameRemote{
    
    private IUC_Factory _factory = null;
    
    private Jp_MesDonnees _jp_MesDonnees = null;
    private Jp_Informations _jp_Informations = null;
    private Frm_Login _frm_login = null;
    private Jp_NouveauClientP _jp_CreerClientP = null;
    private Jp_NouveauClientS _jp_CreerClientS = null;
    private Jp_RechercherClient _jp_RechercherClient = null;
    private Jp_DetailsClientP _jp_DetailsClientP = null;
    private Jp_DetailsClientS _jp_DetailsClientS = null;
    private Jp_NouvelUtilisateur _jp_NouvelUtilisateur = null;
    private Jp_ListeClientsParticulier _jp_ListeClientsParticulier = null;
    private Jp_ListeClientsSociete _jp_ListeClientsSociete = null;
    private Jp_PlannifierIntervention _jp_PlannifierIntervention = null;
    private Jp_DetailsEmployeInt _jp_DetailsEmployeInt = null;
    private Jp_DetailsTechnicien _jp_DetailsTechnicien = null;
    private Jp_AssigneeIntervention _jp_AssigneeIntervention = null;
    private Jp_ReplannifierIntervention _jp_ReplannifierIntervention = null;
    private Jp_ListesInterventions _jp_ListesInterventions = null;
    private Jp_RechercherIntervention _jp_RechercherIntervention = null;
    private Jp_Messages _jp_Messages = null;
    private Jp_PlanningReporting _jp_PlanningReporting = null;
    private Jp_InterventionDetails _jp_InterventionDetails = null;
    private Jp_ListeTechniciens _jp_ListeTechniciens = null;
    private Jp_PlanningTechnicien _jp_PlanningTechnicien = null;
    
    private DefaultListModel _interventionsPlannifiees = new DefaultListModel();
    private DefaultListModel _interventionsAPlannifier = new DefaultListModel();
    private DefaultListModel _interventionsAReplannifier = new DefaultListModel();
    
    private Vector<IIntervention> _lstInterPlan = new Vector<IIntervention>();
    private Vector<IIntervention> _lstInterAPlan = new Vector<IIntervention>();
    private Vector<IIntervention> _lstInterARePlan = new Vector<IIntervention>();
    
    private DefaultListModel _modeleTechniciens = new DefaultListModel();
    private DefaultListModel _modeleloyesInterne = new DefaultListModel();
    
    private Vector<ITechnicien> _lstTechniciens = null;
    private Vector<IEmployeInterne> _lstEmployesInterne = null;
    
    private IEmployeInterne _employeInterne = null;
    private ITechnicien _technicien = null;
    private IEmploye _employe = null;
    private IIntervention _intervention = null;
    
    private void resetPlannificationPanel(){
        this._jp_PlanningReporting.setVisible(false);
        this._jp_AssigneeIntervention.setVisible(false);
        this._jp_PlannifierIntervention.setVisible(false);
        this._jp_ReplannifierIntervention.setVisible(false);
    }
    
    private void resetInterventionPanel(){
        this._jp_InterventionDetails.setVisible(false);
        this._jp_RechercherIntervention.setVisible(false);
        this._jp_ListesInterventions.setVisible(false);
    }
    
    
    public void rechargementListesIntervention(){
        rechargementLstInterAPlan();
        rechargementLstInterPlan();
        rechargementLstInterARepl();
    }
    
    private void rechargementLstInterAPlan(){
        try {
            this._interventionsAPlannifier.clear();
            this._lstInterAPlan = this._factory.getGestionPlanning().listeInterventionAPlanifier();
            if (this._lstInterAPlan.size() > 0){
                for (int i = 0; i < this._lstInterAPlan.size(); i++) {
                    this._interventionsAPlannifier.addElement(this._lstInterAPlan.get(i).getIdIntervention() + " - " + this._lstInterAPlan.get(i).getPrioriteDemande());
                }
            }
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    private void rechargementLstInterPlan(){
        try {
            this._interventionsPlannifiees.clear();
            this._lstInterPlan = this._factory.getGestionPlanning().listeInterventionPlanifiee();
                if (this._lstInterPlan.size() > 0){
                    for (int i = 0; i < this._lstInterPlan.size(); i++) {
                        this._interventionsPlannifiees.addElement(this._lstInterPlan.get(i).getIdIntervention() + " - " + this._lstInterPlan.get(i).getPrioriteIntervention());
                    }
                }
            
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    private void rechargementLstInterARepl(){
        try {
            this._interventionsAReplannifier.clear();
            this._lstInterARePlan = this._factory.getGestionPlanning().listeInterventionAReplanifier();
            if (this._lstInterARePlan.size() > 0){
                for (int i = 0; i < this._lstInterARePlan.size(); i++) {
                    this._interventionsAReplannifier.addElement(this._lstInterARePlan.get(i).getIdIntervention() + " - " + this._lstInterARePlan.get(i).getPrioriteIntervention());
                }
            }
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    private void subscribing() throws RemoteException{
        ((Publisher) this._factory).subscribe((Subscriber) this);
        this._factory.getGestionIntervention().subscribingListeInterventions((Subscriber) this);
        this._factory.getGestionEmployes().subscribingListeTechniciens((Subscriber) this);
        this._factory.getGestionEmployes().subscribingListeEmployesInt((Subscriber) this);
    }

    private void unSubscribing() throws RemoteException{
        ((Publisher) this._factory).unsubscribe((Subscriber) this);
        this._factory.getGestionIntervention().unSubscribingListeInterventions((Subscriber) this);
        this._factory.getGestionEmployes().unSubscribingListeTechniciens((Subscriber) this);
        this._factory.getGestionEmployes().unSubscribingListeEmployesInt((Subscriber) this);
    }
    
    public void setLoginFrm(Frm_Login obj, IUC_Factory fact){
        try {
            this._frm_login = obj;
            this._factory = fact;
            this._jp_Informations.initComponents2(this);
            subscribing();
            fillTechniciens();
            fillEmployesInterne();
            rechargementListesIntervention();
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    public void setRightsEmployeInterne(IEmployeInterne employe){
        try {
            this._employeInterne = employe;
            this._employe = (IEmploye) employe;
            this._jp_Informations.setInformations(this._employeInterne.getMatricule(), this._employeInterne.getNom(), this._employeInterne.getPrenom());
            setRightsFrm(this._employeInterne.getIRole());
        } catch (RoleMinimumMultiplicityException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    public void setRightsTechnicien(ITechnicien technicien){
        try {
            this._technicien = technicien;
            this._employe = (IEmploye) technicien;
            this._jp_Informations.setInformations(this._technicien.getMatricule(), this._technicien.getNom(), this._technicien.getPrenom());
            setRightsFrm(this._technicien.getIRole());
        } catch (RoleMinimumMultiplicityException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    private void setRightsFrm(IRole roles) throws RemoteException{

       if (roles.isGestionClient() == false)
           jTabbedPane1.remove(jxtp_GestionClients);
       if (roles.isGestionIntervention() == false)
           jTabbedPane1.remove(jxtp_GestionInterventions);
       if (roles.isGestionPlanning() == false){
           jTabbedPane1.remove(jxtp_GestionTechniciens);
           jTabbedPane1.remove(jxtp_GestionPlanning);
       }
       if (roles.isGestionSys() == false)
           jTabbedPane1.remove(jxtp_GestionSys);
       
    }
    
    private void fillTechniciens(){
        try {
            this._modeleTechniciens.removeAllElements();
            this._lstTechniciens = this._factory.getGestionEmployes().listerTechniciens();
            for (int i = 0; i < this._lstTechniciens.size(); i++){
                this._modeleTechniciens.addElement(this._lstTechniciens.get(i).getMatricule() + "-" + this._lstTechniciens.get(i).getNom() + " " +  this._lstTechniciens.get(i).getPrenom());
            }
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    private void fillEmployesInterne(){
        try {
            this._modeleloyesInterne.removeAllElements();
            this._lstEmployesInterne = this._factory.getGestionEmployes().listerEmployes();
            for (int i = 0; i < this._lstEmployesInterne.size(); i++){
                this._modeleloyesInterne.addElement(this._lstEmployesInterne.get(i).getMatricule() + " - " + this._lstEmployesInterne.get(i).getNom() + " " +  this._lstEmployesInterne.get(i).getPrenom());
            }            
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }
    
    public IUC_Factory getRegistryFactory(){
        return this._factory;
    }
    
    public IUC_Factory getFactoryRmi(){
        return this._factory;
    }
    
    private void initComponents2(){
        
        this._jp_DetailsClientP = new Jp_DetailsClientP();
        this._jp_DetailsClientP.setVisible(false);
        
        this._jp_DetailsClientS = new Jp_DetailsClientS();
        this._jp_DetailsClientS.setVisible(false);        
        
        this._jp_CreerClientP = new Jp_NouveauClientP();
        this._jp_CreerClientP.setParentFrm(this,this._jp_DetailsClientP);
        this._jp_CreerClientP.setVisible(false);
        
        this._jp_CreerClientS = new Jp_NouveauClientS();
        this._jp_CreerClientS.setParentFrm(this,this._jp_DetailsClientS);
        this._jp_CreerClientS.setVisible(false);
        
        this._jp_RechercherClient = new Jp_RechercherClient();
        this._jp_RechercherClient.initComponents2(this, this._jp_DetailsClientP, this._jp_DetailsClientS);
        this._jp_RechercherClient.setVisible(false);
        
        this._jp_NouvelUtilisateur = new Jp_NouvelUtilisateur();
        this._jp_NouvelUtilisateur.initComponents2(this);
        this._jp_NouvelUtilisateur.setVisible(false);

        this._jp_ListeClientsParticulier = new Jp_ListeClientsParticulier();
        this._jp_ListeClientsParticulier.initComponents2(this, this._jp_DetailsClientP);
        this._jp_ListeClientsParticulier.setVisible(false);
        
        this._jp_ListeClientsSociete = new Jp_ListeClientsSociete();
        this._jp_ListeClientsSociete.initComponents2(this, this._jp_DetailsClientS);
        this._jp_ListeClientsSociete.setVisible(false); 
        
        this._jp_Informations = new Jp_Informations();
        this._jp_Informations.setVisible(true);
        jXPanel4.add(this._jp_Informations, BorderLayout.CENTER);
        
        this._jp_MesDonnees = new Jp_MesDonnees();
        this._jp_MesDonnees.setVisible(false);
        
        this._jp_PlannifierIntervention = new Jp_PlannifierIntervention();
        this._jp_PlannifierIntervention.setVisible(false);
        
        this._jp_DetailsEmployeInt = new Jp_DetailsEmployeInt();
        this._jp_DetailsEmployeInt.setVisible(false);
        
        this._jp_DetailsTechnicien = new Jp_DetailsTechnicien();
        this._jp_DetailsTechnicien.setVisible(false);
        
        this._jp_AssigneeIntervention = new Jp_AssigneeIntervention();
        this._jp_AssigneeIntervention.setVisible(false);
        
        this._jp_ReplannifierIntervention = new Jp_ReplannifierIntervention();
        this._jp_ReplannifierIntervention.setVisible(false);
        
        this._jp_ListesInterventions = new Jp_ListesInterventions();
        this._jp_ListesInterventions.setVisible(false);
        
        this._jp_RechercherIntervention = new Jp_RechercherIntervention();
        this._jp_RechercherIntervention.setVisible(false);
        
        this._jp_Messages = new Jp_Messages();
        this._jp_Messages.setVisible(false);
        
        this._jp_PlanningReporting = new Jp_PlanningReporting();
        this._jp_PlanningReporting.initComponents2(this);
        this._jp_PlanningReporting.setVisible(false);
        
        this._jp_InterventionDetails = new Jp_InterventionDetails();
        this._jp_InterventionDetails.initComponents2(this);
        this._jp_InterventionDetails.setVisible(false);
        
        this._jp_ListeTechniciens = new Jp_ListeTechniciens();
        this._jp_ListeTechniciens.initComponents(this);
        
        this._jp_PlanningTechnicien = new Jp_PlanningTechnicien();
        this._jp_PlanningTechnicien.initComponents2(this);
        
        
    }
    
    public void frmDetails(){
        resetClientTabComponents();
        jXPanel2.add(this._jp_DetailsClientP, BorderLayout.CENTER);
        this._jp_DetailsClientP.setVisible(true);
        jXPanel2.updateUI();         
    }
    
    public void frmDetailsS(){
        resetClientTabComponents();
        jXPanel2.add(this._jp_DetailsClientS, BorderLayout.CENTER);
        this._jp_DetailsClientS.setVisible(true);
        jXPanel2.updateUI();         
    }    
    
    public void frmDetailsI(){
        resetInterventionPanel();
        jXPanel5.add(this._jp_InterventionDetails, BorderLayout.CENTER);
        this._jp_InterventionDetails.setVisible(true);
        jXPanel5.updateUI();
    }
    
    private void resetAcceuilTabComponents(){
        jXPanel4.removeAll();
        this._jp_MesDonnees.setVisible(false);
        this._jp_Informations.setVisible(false);
        this._jp_Messages.setVisible(false);
    }
    
    private void resetUtilisateursTabComponents(){
        jPanel2.removeAll();
        this._jp_NouvelUtilisateur.setVisible(false);
    }
    
    private void resetClientTabComponents(){
        jXPanel2.removeAll();
        this._jp_CreerClientP.setVisible(false);
        this._jp_CreerClientS.setVisible(false);
        this._jp_RechercherClient.setVisible(false);
        this._jp_DetailsClientP.setVisible(false);
        this._jp_ListeClientsParticulier.setVisible(false);
        this._jp_ListeClientsSociete.setVisible(false);
        
    }
    
    /** Creates new form Frm_Application */
    public Frm_Application() {
        try {
            initComponents();
            setLocationRelativeTo(null);
            initComponents2();
            UnicastRemoteObject.exportObject(this, 0);
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        jXTitledPanel1 = new org.jdesktop.swingx.JXTitledPanel();
        jXPanel3 = new org.jdesktop.swingx.JXPanel();
        jXTaskPaneContainer3 = new org.jdesktop.swingx.JXTaskPaneContainer();
        jXTaskPane5 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink7 = new org.jdesktop.swingx.JXHyperlink();
        jXHyperlink11 = new org.jdesktop.swingx.JXHyperlink();
        jXTitledSeparator1 = new org.jdesktop.swingx.JXTitledSeparator();
        jXTaskPane6 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink8 = new org.jdesktop.swingx.JXHyperlink();
        jXTitledSeparator2 = new org.jdesktop.swingx.JXTitledSeparator();
        jXPanel4 = new org.jdesktop.swingx.JXPanel();
        jxtp_GestionClients = new org.jdesktop.swingx.JXTitledPanel();
        jXPanel1 = new org.jdesktop.swingx.JXPanel();
        jXTaskPaneContainer1 = new org.jdesktop.swingx.JXTaskPaneContainer();
        jXTaskPane1 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink1 = new org.jdesktop.swingx.JXHyperlink();
        jXHyperlink3 = new org.jdesktop.swingx.JXHyperlink();
        jSeparator1 = new javax.swing.JSeparator();
        jXTaskPane3 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink2 = new org.jdesktop.swingx.JXHyperlink();
        jSeparator2 = new javax.swing.JSeparator();
        jXTaskPane4 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink5 = new org.jdesktop.swingx.JXHyperlink();
        jXHyperlink6 = new org.jdesktop.swingx.JXHyperlink();
        jSeparator3 = new javax.swing.JSeparator();
        jXPanel2 = new org.jdesktop.swingx.JXPanel();
        jxtp_GestionInterventions = new org.jdesktop.swingx.JXTitledPanel();
        jXPanel5 = new org.jdesktop.swingx.JXPanel();
        jXTaskPaneContainer4 = new org.jdesktop.swingx.JXTaskPaneContainer();
        jXTaskPane9 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink9 = new org.jdesktop.swingx.JXHyperlink();
        jXTitledSeparator3 = new org.jdesktop.swingx.JXTitledSeparator();
        jXTaskPane10 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink10 = new org.jdesktop.swingx.JXHyperlink();
        jXTitledSeparator4 = new org.jdesktop.swingx.JXTitledSeparator();
        jxtp_GestionTechniciens = new org.jdesktop.swingx.JXTitledPanel();
        jXTaskPaneContainer6 = new org.jdesktop.swingx.JXTaskPaneContainer();
        jXTaskPane11 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink12 = new org.jdesktop.swingx.JXHyperlink();
        jXTitledSeparator7 = new org.jdesktop.swingx.JXTitledSeparator();
        jXTaskPane16 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink14 = new org.jdesktop.swingx.JXHyperlink();
        jXTitledSeparator8 = new org.jdesktop.swingx.JXTitledSeparator();
        jXPanel9 = new org.jdesktop.swingx.JXPanel();
        jxtp_GestionPlanning = new org.jdesktop.swingx.JXTitledPanel();
        jXPanel6 = new org.jdesktop.swingx.JXPanel();
        jXPanel11 = new org.jdesktop.swingx.JXPanel();
        jXTaskPaneContainer5 = new org.jdesktop.swingx.JXTaskPaneContainer();
        jXTaskPane15 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink13 = new org.jdesktop.swingx.JXHyperlink();
        jXTitledSeparator6 = new org.jdesktop.swingx.JXTitledSeparator();
        jXTaskPane12 = new org.jdesktop.swingx.JXTaskPane();
        jXPanel10 = new org.jdesktop.swingx.JXPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jl_ItrvPlannifier = new org.jdesktop.swingx.JXList();
        jXTaskPane7 = new org.jdesktop.swingx.JXTaskPane();
        jXPanel7 = new org.jdesktop.swingx.JXPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jl_ItrvAPlannifier = new org.jdesktop.swingx.JXList();
        jXTaskPane8 = new org.jdesktop.swingx.JXTaskPane();
        jXPanel8 = new org.jdesktop.swingx.JXPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jl_ItrvAReplannifier = new org.jdesktop.swingx.JXList();
        jxtp_GestionSys = new org.jdesktop.swingx.JXTitledPanel();
        jPanel1 = new javax.swing.JPanel();
        jXTaskPaneContainer2 = new org.jdesktop.swingx.JXTaskPaneContainer();
        jXTaskPane2 = new org.jdesktop.swingx.JXTaskPane();
        jXHyperlink4 = new org.jdesktop.swingx.JXHyperlink();
        jXTitledSeparator5 = new org.jdesktop.swingx.JXTitledSeparator();
        jXTaskPane13 = new org.jdesktop.swingx.JXTaskPane();
        jXPanel12 = new org.jdesktop.swingx.JXPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jxlist_EmployeInt = new org.jdesktop.swingx.JXList();
        jXTaskPane14 = new org.jdesktop.swingx.JXTaskPane();
        jXPanel13 = new org.jdesktop.swingx.JXPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jxlist_Techniciens = new org.jdesktop.swingx.JXList();
        jPanel2 = new org.jdesktop.swingx.JXPanel();
        jToolBar1 = new javax.swing.JToolBar();
        jSeparator4 = new javax.swing.JToolBar.Separator();
        jbtn_Quitter = new javax.swing.JButton();
        jSeparator5 = new javax.swing.JToolBar.Separator();
        jbtn_Deconnection = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem9 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenuItem7 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Console Client");

        jTabbedPane1.setName("tuut"); // NOI18N

        jXTitledPanel1.setTitle("Informations et données personnelles");

        jXPanel3.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jXPanel3.setLayout(new java.awt.BorderLayout());

        jXTaskPaneContainer3.setBackgroundPainter(getPainter2());
        jXTaskPaneContainer3.setMinimumSize(new java.awt.Dimension(194, 133));
        jXTaskPaneContainer3.setPreferredSize(new java.awt.Dimension(194, 133));

        jXTaskPane5.setTitle("Acceuil");

        jXHyperlink7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/monitor.png"))); // NOI18N
        jXHyperlink7.setText("Informations");
        jXHyperlink7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink7ActionPerformed(evt);
            }
        });
        jXTaskPane5.getContentPane().add(jXHyperlink7);

        jXHyperlink11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/lightbulb.png"))); // NOI18N
        jXHyperlink11.setText("Messages");
        jXHyperlink11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink11ActionPerformed(evt);
            }
        });
        jXTaskPane5.getContentPane().add(jXHyperlink11);

        jXTitledSeparator1.setTitle("");
        jXTaskPane5.getContentPane().add(jXTitledSeparator1);

        jXTaskPaneContainer3.add(jXTaskPane5);

        jXTaskPane6.setTitle("Mes données");

        jXHyperlink8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/key.png"))); // NOI18N
        jXHyperlink8.setText("Changer mot de passe");
        jXHyperlink8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink8ActionPerformed(evt);
            }
        });
        jXTaskPane6.getContentPane().add(jXHyperlink8);

        jXTitledSeparator2.setTitle("");
        jXTaskPane6.getContentPane().add(jXTitledSeparator2);

        jXTaskPaneContainer3.add(jXTaskPane6);

        jXPanel3.add(jXTaskPaneContainer3, java.awt.BorderLayout.CENTER);

        jXPanel4.setBackgroundPainter(getPainter());
        jXPanel4.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jXPanel4.setLayout(new java.awt.BorderLayout());

        javax.swing.GroupLayout jXTitledPanel1Layout = new javax.swing.GroupLayout(jXTitledPanel1.getContentContainer());
        jXTitledPanel1.getContentContainer().setLayout(jXTitledPanel1Layout);
        jXTitledPanel1Layout.setHorizontalGroup(
            jXTitledPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jXTitledPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jXPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jXPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, 772, Short.MAX_VALUE)
                .addContainerGap())
        );
        jXTitledPanel1Layout.setVerticalGroup(
            jXTitledPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jXTitledPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jXTitledPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jXPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)
                    .addComponent(jXPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Tableau de bord", new javax.swing.ImageIcon(getClass().getResource("/img/vcard.png")), jXTitledPanel1); // NOI18N

        jxtp_GestionClients.setTitle(" Gestion des clients");

        jXPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jXPanel1.setLayout(new java.awt.BorderLayout());

        jXTaskPaneContainer1.setBackgroundPainter(getPainter2());

        jXTaskPane1.setTitle("Créer");
        jXTaskPane1.addAncestorListener(new javax.swing.event.AncestorListener() {
            public void ancestorMoved(javax.swing.event.AncestorEvent evt) {
            }
            public void ancestorAdded(javax.swing.event.AncestorEvent evt) {
                jXTaskPane1AncestorAdded(evt);
            }
            public void ancestorRemoved(javax.swing.event.AncestorEvent evt) {
            }
        });

        jXHyperlink1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/user_suit.png"))); // NOI18N
        jXHyperlink1.setText("Créer un client Particulier");
        jXHyperlink1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink1ActionPerformed(evt);
            }
        });
        jXTaskPane1.getContentPane().add(jXHyperlink1);

        jXHyperlink3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/house.png"))); // NOI18N
        jXHyperlink3.setText("Créer un client Société");
        jXHyperlink3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink3ActionPerformed(evt);
            }
        });
        jXTaskPane1.getContentPane().add(jXHyperlink3);
        jXTaskPane1.getContentPane().add(jSeparator1);

        jXTaskPaneContainer1.add(jXTaskPane1);

        jXTaskPane3.setTitle("Rechercher");

        jXHyperlink2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/find.png"))); // NOI18N
        jXHyperlink2.setText("Rechercher un client");
        jXHyperlink2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink2ActionPerformed(evt);
            }
        });
        jXTaskPane3.getContentPane().add(jXHyperlink2);
        jXTaskPane3.getContentPane().add(jSeparator2);

        jXTaskPaneContainer1.add(jXTaskPane3);

        jXTaskPane4.setTitle("Lister");

        jXHyperlink5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/user_go.png"))); // NOI18N
        jXHyperlink5.setText("Liste des clients Particulier");
        jXHyperlink5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink5ActionPerformed(evt);
            }
        });
        jXTaskPane4.getContentPane().add(jXHyperlink5);

        jXHyperlink6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/house_go.png"))); // NOI18N
        jXHyperlink6.setText("Liste des clients Société");
        jXHyperlink6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink6ActionPerformed(evt);
            }
        });
        jXTaskPane4.getContentPane().add(jXHyperlink6);
        jXTaskPane4.getContentPane().add(jSeparator3);

        jXTaskPaneContainer1.add(jXTaskPane4);

        jXPanel1.add(jXTaskPaneContainer1, java.awt.BorderLayout.CENTER);

        jXPanel2.setBackgroundPainter(getPainter());
        jXPanel2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jXPanel2.setLayout(new java.awt.BorderLayout());

        javax.swing.GroupLayout jxtp_GestionClientsLayout = new javax.swing.GroupLayout(jxtp_GestionClients.getContentContainer());
        jxtp_GestionClients.getContentContainer().setLayout(jxtp_GestionClientsLayout);
        jxtp_GestionClientsLayout.setHorizontalGroup(
            jxtp_GestionClientsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxtp_GestionClientsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jXPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jXPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 778, Short.MAX_VALUE)
                .addContainerGap())
        );
        jxtp_GestionClientsLayout.setVerticalGroup(
            jxtp_GestionClientsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jxtp_GestionClientsLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jxtp_GestionClientsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jXPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)
                    .addComponent(jXPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Clients", new javax.swing.ImageIcon(getClass().getResource("/img/group.png")), jxtp_GestionClients); // NOI18N

        jxtp_GestionInterventions.setTitle("Gestion des interventions");

        jXPanel5.setBackgroundPainter(getPainter());
        jXPanel5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jXPanel5.setLayout(new java.awt.BorderLayout());

        jXTaskPaneContainer4.setBackgroundPainter(getPainter2());

        jXTaskPane9.setTitle("Rechercher");

        jXHyperlink9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/find.png"))); // NOI18N
        jXHyperlink9.setText("Rechercher une intervention");
        jXHyperlink9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink9ActionPerformed(evt);
            }
        });
        jXTaskPane9.getContentPane().add(jXHyperlink9);

        jXTitledSeparator3.setTitle("");
        jXTaskPane9.getContentPane().add(jXTitledSeparator3);

        jXTaskPaneContainer4.add(jXTaskPane9);

        jXTaskPane10.setTitle("Lister");

        jXHyperlink10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/date_go.png"))); // NOI18N
        jXHyperlink10.setText("Liste des interventions");
        jXHyperlink10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink10ActionPerformed(evt);
            }
        });
        jXTaskPane10.getContentPane().add(jXHyperlink10);

        jXTitledSeparator4.setTitle("");
        jXTaskPane10.getContentPane().add(jXTitledSeparator4);

        jXTaskPaneContainer4.add(jXTaskPane10);

        javax.swing.GroupLayout jxtp_GestionInterventionsLayout = new javax.swing.GroupLayout(jxtp_GestionInterventions.getContentContainer());
        jxtp_GestionInterventions.getContentContainer().setLayout(jxtp_GestionInterventionsLayout);
        jxtp_GestionInterventionsLayout.setHorizontalGroup(
            jxtp_GestionInterventionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxtp_GestionInterventionsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jXTaskPaneContainer4, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jXPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, 739, Short.MAX_VALUE)
                .addContainerGap())
        );
        jxtp_GestionInterventionsLayout.setVerticalGroup(
            jxtp_GestionInterventionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jxtp_GestionInterventionsLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jxtp_GestionInterventionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jXTaskPaneContainer4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)
                    .addComponent(jXPanel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Interventions", new javax.swing.ImageIcon(getClass().getResource("/img/date.png")), jxtp_GestionInterventions); // NOI18N

        jxtp_GestionTechniciens.setTitle(" Gestion des techniciens");

        jXTaskPaneContainer6.setBackgroundPainter(getPainter2());

        jXTaskPane11.setTitle("Lister");

        jXHyperlink12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/car.png"))); // NOI18N
        jXHyperlink12.setText("Liste les techniciens");
        jXHyperlink12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink12ActionPerformed(evt);
            }
        });
        jXTaskPane11.getContentPane().add(jXHyperlink12);

        jXTitledSeparator7.setTitle("");
        jXTaskPane11.getContentPane().add(jXTitledSeparator7);

        jXTaskPaneContainer6.add(jXTaskPane11);

        jXTaskPane16.setTitle("Information");

        jXHyperlink14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/report_user.png"))); // NOI18N
        jXHyperlink14.setText("Planning des techniciens");
        jXHyperlink14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink14ActionPerformed(evt);
            }
        });
        jXTaskPane16.getContentPane().add(jXHyperlink14);

        jXTitledSeparator8.setTitle("");
        jXTaskPane16.getContentPane().add(jXTitledSeparator8);

        jXTaskPaneContainer6.add(jXTaskPane16);

        jXPanel9.setBackgroundPainter(getPainter());
        jXPanel9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jXPanel9.setLayout(new java.awt.BorderLayout());

        javax.swing.GroupLayout jxtp_GestionTechniciensLayout = new javax.swing.GroupLayout(jxtp_GestionTechniciens.getContentContainer());
        jxtp_GestionTechniciens.getContentContainer().setLayout(jxtp_GestionTechniciensLayout);
        jxtp_GestionTechniciensLayout.setHorizontalGroup(
            jxtp_GestionTechniciensLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxtp_GestionTechniciensLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jXTaskPaneContainer6, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jXPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, 765, Short.MAX_VALUE)
                .addContainerGap())
        );
        jxtp_GestionTechniciensLayout.setVerticalGroup(
            jxtp_GestionTechniciensLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jxtp_GestionTechniciensLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jxtp_GestionTechniciensLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jXTaskPaneContainer6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)
                    .addComponent(jXPanel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Techniciens", new javax.swing.ImageIcon(getClass().getResource("/img/car.png")), jxtp_GestionTechniciens); // NOI18N

        jxtp_GestionPlanning.setTitle("Gestion du planning");
        jxtp_GestionPlanning.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jxtp_GestionPlanningMouseClicked(evt);
            }
        });

        jXPanel6.setBackgroundPainter(getPainter());
        jXPanel6.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jXPanel6.setLayout(new java.awt.BorderLayout());

        jXPanel11.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jXPanel11.setMinimumSize(new java.awt.Dimension(194, 133));
        jXPanel11.setPreferredSize(new java.awt.Dimension(194, 133));
        jXPanel11.setLayout(new java.awt.BorderLayout());

        jXTaskPaneContainer5.setBackgroundPainter(getPainter2());

        jXTaskPane15.setTitle("Information");

        jXHyperlink13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/report.png"))); // NOI18N
        jXHyperlink13.setText("Planning général");
        jXHyperlink13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink13ActionPerformed(evt);
            }
        });
        jXTaskPane15.getContentPane().add(jXHyperlink13);

        jXTitledSeparator6.setTitle("");
        jXTaskPane15.getContentPane().add(jXTitledSeparator6);

        jXTaskPaneContainer5.add(jXTaskPane15);

        jXTaskPane12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/flag_blue.png"))); // NOI18N
        jXTaskPane12.setTitle("Int. Plannifiées");
        jXTaskPane12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jXTaskPane12MouseClicked(evt);
            }
        });

        jXPanel10.setLayout(new java.awt.BorderLayout());

        jl_ItrvPlannifier.setModel(_interventionsPlannifiees);
        jl_ItrvPlannifier.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jl_ItrvPlannifier.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jl_ItrvPlannifierMouseClicked(evt);
            }
        });
        jScrollPane4.setViewportView(jl_ItrvPlannifier);

        jXPanel10.add(jScrollPane4, java.awt.BorderLayout.CENTER);

        jXTaskPane12.getContentPane().add(jXPanel10);

        jXTaskPaneContainer5.add(jXTaskPane12);

        jXTaskPane7.setExpanded(false);
        jXTaskPane7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/flag_orange.png"))); // NOI18N
        jXTaskPane7.setTitle("Int. A plannifier");
        jXTaskPane7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jXTaskPane7MouseClicked(evt);
            }
        });

        jXPanel7.setLayout(new java.awt.BorderLayout());

        jl_ItrvAPlannifier.setModel(_interventionsAPlannifier);
        jl_ItrvAPlannifier.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jl_ItrvAPlannifier.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jl_ItrvAPlannifierMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(jl_ItrvAPlannifier);

        jXPanel7.add(jScrollPane2, java.awt.BorderLayout.CENTER);

        jXTaskPane7.getContentPane().add(jXPanel7);

        jXTaskPaneContainer5.add(jXTaskPane7);

        jXTaskPane8.setExpanded(false);
        jXTaskPane8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/flag_red.png"))); // NOI18N
        jXTaskPane8.setTitle("Int. A replannifier");
        jXTaskPane8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jXTaskPane8MouseClicked(evt);
            }
        });
        jXTaskPane8.getContentPane().setLayout(new java.awt.BorderLayout());

        jXPanel8.setLayout(new java.awt.BorderLayout());

        jl_ItrvAReplannifier.setModel(_interventionsAReplannifier);
        jl_ItrvAReplannifier.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jl_ItrvAReplannifierMouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(jl_ItrvAReplannifier);

        jXPanel8.add(jScrollPane3, java.awt.BorderLayout.CENTER);

        jXTaskPane8.getContentPane().add(jXPanel8, java.awt.BorderLayout.CENTER);

        jXTaskPaneContainer5.add(jXTaskPane8);

        jXPanel11.add(jXTaskPaneContainer5, java.awt.BorderLayout.CENTER);

        javax.swing.GroupLayout jxtp_GestionPlanningLayout = new javax.swing.GroupLayout(jxtp_GestionPlanning.getContentContainer());
        jxtp_GestionPlanning.getContentContainer().setLayout(jxtp_GestionPlanningLayout);
        jxtp_GestionPlanningLayout.setHorizontalGroup(
            jxtp_GestionPlanningLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxtp_GestionPlanningLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jXPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jXPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, 783, Short.MAX_VALUE)
                .addContainerGap())
        );
        jxtp_GestionPlanningLayout.setVerticalGroup(
            jxtp_GestionPlanningLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jxtp_GestionPlanningLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jxtp_GestionPlanningLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jXPanel11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)
                    .addComponent(jXPanel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Planning", new javax.swing.ImageIcon(getClass().getResource("/img/report.png")), jxtp_GestionPlanning); // NOI18N

        jxtp_GestionSys.setTitle("Gestion de la création des utilisateurs et des droits");

        jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.setMinimumSize(new java.awt.Dimension(194, 133));
        jPanel1.setPreferredSize(new java.awt.Dimension(194, 133));
        jPanel1.setLayout(new java.awt.BorderLayout());

        jXTaskPaneContainer2.setBackgroundPainter(getPainter2());

        jXTaskPane2.setTitle("Opérations");

        jXHyperlink4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/report_user.png"))); // NOI18N
        jXHyperlink4.setText("Créer un utilisateur");
        jXHyperlink4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jXHyperlink4ActionPerformed(evt);
            }
        });
        jXTaskPane2.getContentPane().add(jXHyperlink4);

        jXTitledSeparator5.setTitle("");
        jXTaskPane2.getContentPane().add(jXTitledSeparator5);

        jXTaskPaneContainer2.add(jXTaskPane2);

        jXTaskPane13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/user_suit.png"))); // NOI18N
        jXTaskPane13.setTitle("Liste des employés");
        jXTaskPane13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jXTaskPane13MouseClicked(evt);
            }
        });

        jXPanel12.setLayout(new java.awt.BorderLayout());

        jxlist_EmployeInt.setModel(_modeleloyesInterne);
        jxlist_EmployeInt.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jxlist_EmployeIntMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(jxlist_EmployeInt);

        jXPanel12.add(jScrollPane1, java.awt.BorderLayout.CENTER);

        jXTaskPane13.getContentPane().add(jXPanel12);

        jXTaskPaneContainer2.add(jXTaskPane13);

        jXTaskPane14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/car.png"))); // NOI18N
        jXTaskPane14.setTitle("Liste des techniciens");
        jXTaskPane14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jXTaskPane14MouseClicked(evt);
            }
        });

        jXPanel13.setLayout(new java.awt.BorderLayout());

        jxlist_Techniciens.setModel(_modeleTechniciens);
        jxlist_Techniciens.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jxlist_TechniciensMouseClicked(evt);
            }
        });
        jScrollPane5.setViewportView(jxlist_Techniciens);

        jXPanel13.add(jScrollPane5, java.awt.BorderLayout.CENTER);

        jXTaskPane14.getContentPane().add(jXPanel13);

        jXTaskPaneContainer2.add(jXTaskPane14);

        jPanel1.add(jXTaskPaneContainer2, java.awt.BorderLayout.CENTER);

        jPanel2.setBackgroundPainter(getPainter());
        jPanel2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel2.setLayout(new java.awt.BorderLayout());

        javax.swing.GroupLayout jxtp_GestionSysLayout = new javax.swing.GroupLayout(jxtp_GestionSys.getContentContainer());
        jxtp_GestionSys.getContentContainer().setLayout(jxtp_GestionSysLayout);
        jxtp_GestionSysLayout.setHorizontalGroup(
            jxtp_GestionSysLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxtp_GestionSysLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 767, Short.MAX_VALUE)
                .addContainerGap())
        );
        jxtp_GestionSysLayout.setVerticalGroup(
            jxtp_GestionSysLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jxtp_GestionSysLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jxtp_GestionSysLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Système", new javax.swing.ImageIcon(getClass().getResource("/img/wrench_orange.png")), jxtp_GestionSys); // NOI18N

        getContentPane().add(jTabbedPane1, java.awt.BorderLayout.CENTER);

        jToolBar1.setFloatable(false);
        jToolBar1.setRollover(true);
        jToolBar1.add(jSeparator4);

        jbtn_Quitter.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/door_out.png"))); // NOI18N
        jbtn_Quitter.setToolTipText("Quitter");
        jbtn_Quitter.setFocusable(false);
        jbtn_Quitter.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtn_Quitter.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtn_Quitter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_QuitterActionPerformed(evt);
            }
        });
        jToolBar1.add(jbtn_Quitter);
        jToolBar1.add(jSeparator5);

        jbtn_Deconnection.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/door_open.png"))); // NOI18N
        jbtn_Deconnection.setToolTipText("Déconnection");
        jbtn_Deconnection.setFocusable(false);
        jbtn_Deconnection.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jbtn_Deconnection.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jbtn_Deconnection.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_DeconnectionActionPerformed(evt);
            }
        });
        jToolBar1.add(jbtn_Deconnection);

        getContentPane().add(jToolBar1, java.awt.BorderLayout.PAGE_START);

        jMenuBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jMenu1.setText("Application");

        jMenuItem8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/door_open.png"))); // NOI18N
        jMenuItem8.setText("Déconnection");
        jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem8ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem8);

        jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/door_out.png"))); // NOI18N
        jMenuItem1.setText("Quitter");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem1);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Opérations");

        jMenuItem9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/vcard.png"))); // NOI18N
        jMenuItem9.setText("Tableau de bord");
        jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem9ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem9);

        jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/group.png"))); // NOI18N
        jMenuItem2.setText("Clients");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem2);

        jMenuItem3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/date.png"))); // NOI18N
        jMenuItem3.setText("Interventions");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem3);

        jMenuItem4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/car.png"))); // NOI18N
        jMenuItem4.setText("Techniciens");
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem4);

        jMenuItem5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/report.png"))); // NOI18N
        jMenuItem5.setText("Planning");
        jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem5ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem5);

        jMenuItem6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/wrench_orange.png"))); // NOI18N
        jMenuItem6.setText("Système");
        jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem6ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem6);

        jMenuBar1.add(jMenu2);

        jMenu3.setText("Aide");

        jMenuItem7.setText("A propos ...");
        jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItem7);

        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        System.exit(0);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jXTaskPane1AncestorAdded(javax.swing.event.AncestorEvent evt) {//GEN-FIRST:event_jXTaskPane1AncestorAdded
        // TODO add your handling code here:
    }//GEN-LAST:event_jXTaskPane1AncestorAdded

    private void jXHyperlink1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink1ActionPerformed

        resetClientTabComponents();
        jXPanel2.add(this._jp_CreerClientP, BorderLayout.NORTH);
        this._jp_CreerClientP.setVisible(true);
        jXPanel2.updateUI(); 
    }//GEN-LAST:event_jXHyperlink1ActionPerformed

    private void jXHyperlink2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink2ActionPerformed

        resetClientTabComponents();
        jXPanel2.add(this._jp_RechercherClient, BorderLayout.CENTER);
        this._jp_RechercherClient.setVisible(true);
        jXPanel2.updateUI();        
    }//GEN-LAST:event_jXHyperlink2ActionPerformed

    private void jXHyperlink4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink4ActionPerformed

        resetUtilisateursTabComponents();
        this._jp_DetailsEmployeInt.setVisible(false);
        jPanel2.add(this._jp_NouvelUtilisateur, BorderLayout.NORTH);
        this._jp_NouvelUtilisateur.setZones();
        this._jp_NouvelUtilisateur.setVisible(true);
        jPanel2.updateUI();
        
    }//GEN-LAST:event_jXHyperlink4ActionPerformed

    private void jXHyperlink5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink5ActionPerformed
        resetClientTabComponents();
        jXPanel2.add(this._jp_ListeClientsParticulier, BorderLayout.CENTER);
        this._jp_ListeClientsParticulier.setVisible(true);
        this._jp_ListeClientsParticulier.refreshClientsList();
        jXPanel2.updateUI();       
    }//GEN-LAST:event_jXHyperlink5ActionPerformed

    private void jXHyperlink6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink6ActionPerformed
        resetClientTabComponents();
        jXPanel2.add(this._jp_ListeClientsSociete, BorderLayout.CENTER);
        this._jp_ListeClientsSociete.setVisible(true);
        this._jp_ListeClientsSociete.refreshClientsList();
        jXPanel2.updateUI(); 
    }//GEN-LAST:event_jXHyperlink6ActionPerformed

    private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed

        this._frm_login.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_jMenuItem8ActionPerformed

    private void jXHyperlink8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink8ActionPerformed
        
        resetAcceuilTabComponents();
        jXPanel4.add(this._jp_MesDonnees, BorderLayout.CENTER);
        this._jp_MesDonnees.setVisible(true);
        jXPanel4.updateUI();       
        
    }//GEN-LAST:event_jXHyperlink8ActionPerformed

    private void jXHyperlink7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink7ActionPerformed

        resetAcceuilTabComponents();
        jXPanel4.add(this._jp_Informations, BorderLayout.CENTER);
        this._jp_Informations.setVisible(true);
        jXPanel4.updateUI();        
        
    }//GEN-LAST:event_jXHyperlink7ActionPerformed

    private void jXHyperlink3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink3ActionPerformed

        resetClientTabComponents();
        jXPanel2.add(this._jp_CreerClientS, BorderLayout.NORTH);
        this._jp_CreerClientS.setFormes();
        this._jp_CreerClientS.setVisible(true);
        jXPanel2.updateUI();        
        
    }//GEN-LAST:event_jXHyperlink3ActionPerformed

    private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed

        Jd_Apropos ja = new Jd_Apropos(this, true);
        ja.setVisible(true);
        
    }//GEN-LAST:event_jMenuItem7ActionPerformed

    private void jbtn_QuitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_QuitterActionPerformed
        
        try {
            unSubscribing();
            System.exit(0);
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }//GEN-LAST:event_jbtn_QuitterActionPerformed

    private void jbtn_DeconnectionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_DeconnectionActionPerformed
        
        try {
            this._frm_login.setVisible(true);
            unSubscribing();
            this.dispose();
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }//GEN-LAST:event_jbtn_DeconnectionActionPerformed

    private void jxtp_GestionPlanningMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxtp_GestionPlanningMouseClicked

        
    }//GEN-LAST:event_jxtp_GestionPlanningMouseClicked

    private void jl_ItrvAPlannifierMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_ItrvAPlannifierMouseClicked
        try {
            resetPlannificationPanel();
            jXPanel6.add(this._jp_PlannifierIntervention, BorderLayout.CENTER);
            int index = jl_ItrvAPlannifier.locationToIndex(evt.getPoint());
            IIntervention intervention = (IIntervention) this._lstInterAPlan.get(index);
            this._jp_PlannifierIntervention.initComponents2(this, intervention);
            this._jp_PlannifierIntervention.setVisible(true);
        } catch (CodePostalMinimumMultiplicityException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }//GEN-LAST:event_jl_ItrvAPlannifierMouseClicked

    private void jxlist_TechniciensMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxlist_TechniciensMouseClicked
        
        this._jp_NouvelUtilisateur.setVisible(false);
        this._jp_DetailsEmployeInt.setVisible(false);
        jPanel2.add(this._jp_DetailsTechnicien, BorderLayout.NORTH);
        int index = jxlist_Techniciens.locationToIndex(evt.getPoint());
        ITechnicien technicien = (ITechnicien)this._lstTechniciens.get(index);
        this._jp_DetailsTechnicien.initComponents2(this, technicien);
        this._jp_DetailsTechnicien.setVisible(true);
        
}//GEN-LAST:event_jxlist_TechniciensMouseClicked

    private void jxlist_EmployeIntMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxlist_EmployeIntMouseClicked

        this._jp_NouvelUtilisateur.setVisible(false);
        this._jp_DetailsTechnicien.setVisible(false);
        jPanel2.add(this._jp_DetailsEmployeInt, BorderLayout.NORTH);
        int index = jxlist_EmployeInt.locationToIndex(evt.getPoint());
        IEmployeInterne employeInterne = (IEmployeInterne) this._lstEmployesInterne.get(index);
        this._jp_DetailsEmployeInt.initComponents2(this, employeInterne);
        this._jp_DetailsEmployeInt.setVisible(true);        
        
    }//GEN-LAST:event_jxlist_EmployeIntMouseClicked

    private void jl_ItrvPlannifierMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_ItrvPlannifierMouseClicked
        try {
            resetPlannificationPanel();
            jXPanel6.add(this._jp_AssigneeIntervention, BorderLayout.NORTH);
            int index = jl_ItrvPlannifier.locationToIndex(evt.getPoint());
            IIntervention intervention = (IIntervention) this._lstInterPlan.get(index);
            this._jp_AssigneeIntervention.initComponents2(this, intervention, intervention.getITechnicien());
            this._jp_AssigneeIntervention.setVisible(true);
        } catch (RemoteException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        } catch (TechnicienMinimumMultiplicityException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }
        
}//GEN-LAST:event_jl_ItrvPlannifierMouseClicked

    private void jl_ItrvAReplannifierMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jl_ItrvAReplannifierMouseClicked

        try {
            resetPlannificationPanel();
            jXPanel6.add(this._jp_ReplannifierIntervention, BorderLayout.CENTER);
            int index = jl_ItrvAReplannifier.locationToIndex(evt.getPoint());
            IIntervention intervention = (IIntervention) this._lstInterARePlan.get(index);
            this._jp_ReplannifierIntervention.initComponents2(this, intervention);
            this._jp_ReplannifierIntervention.setVisible(true);
        } catch (CodePostalMinimumMultiplicityException ex) {
            Logger.getLogger(Frm_Application.class.getName()).log(Level.SEVERE, null, ex);
        }        
        
    }//GEN-LAST:event_jl_ItrvAReplannifierMouseClicked

    private void jXHyperlink10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink10ActionPerformed

        resetInterventionPanel();        
        jXPanel5.add(this._jp_ListesInterventions, BorderLayout.CENTER);
        this._jp_ListesInterventions.initComponents2(this);
        this._jp_ListesInterventions.setVisible(true);
        
    }//GEN-LAST:event_jXHyperlink10ActionPerformed

    private void jXHyperlink9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink9ActionPerformed

        resetInterventionPanel();
        jXPanel5.add(this._jp_RechercherIntervention, BorderLayout.CENTER);
        this._jp_RechercherIntervention.initComponents2(this, this._jp_InterventionDetails);
        this._jp_RechercherIntervention.setVisible(true);        
        
    }//GEN-LAST:event_jXHyperlink9ActionPerformed

    private void jXTaskPane12MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jXTaskPane12MouseClicked

        rechargementListesIntervention();
        
    }//GEN-LAST:event_jXTaskPane12MouseClicked

    private void jXTaskPane7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jXTaskPane7MouseClicked

        rechargementListesIntervention();
        
    }//GEN-LAST:event_jXTaskPane7MouseClicked

    private void jXTaskPane8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jXTaskPane8MouseClicked

        rechargementListesIntervention();
        
    }//GEN-LAST:event_jXTaskPane8MouseClicked

    private void jXTaskPane13MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jXTaskPane13MouseClicked
        
        fillEmployesInterne();
        
    }//GEN-LAST:event_jXTaskPane13MouseClicked

    private void jXTaskPane14MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jXTaskPane14MouseClicked

        fillTechniciens();
        
    }//GEN-LAST:event_jXTaskPane14MouseClicked

    private void jXHyperlink11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink11ActionPerformed

        resetAcceuilTabComponents();        
        jXPanel4.add(this._jp_Messages, BorderLayout.CENTER);
        this._jp_Messages.setVisible(true);
        
    }//GEN-LAST:event_jXHyperlink11ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
       
        jTabbedPane1.setSelectedIndex(1);
        
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed

        jTabbedPane1.setSelectedIndex(2);        
        
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed

        jTabbedPane1.setSelectedIndex(3);         
        
    }//GEN-LAST:event_jMenuItem4ActionPerformed

    private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed

        jTabbedPane1.setSelectedIndex(4);        
        
    }//GEN-LAST:event_jMenuItem5ActionPerformed

    private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed

        jTabbedPane1.setSelectedIndex(5);        
        
    }//GEN-LAST:event_jMenuItem6ActionPerformed

    private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem9ActionPerformed

        jTabbedPane1.setSelectedIndex(0);         
        
    }//GEN-LAST:event_jMenuItem9ActionPerformed

    private void jXHyperlink13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink13ActionPerformed

        resetPlannificationPanel();
        jXPanel6.add(this._jp_PlanningReporting, BorderLayout.CENTER);
        this._jp_PlanningReporting.setZones();
        this._jp_PlanningReporting.setVisible(true);
        
    }//GEN-LAST:event_jXHyperlink13ActionPerformed

    private void jXHyperlink14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink14ActionPerformed

        this._jp_ListeTechniciens.setVisible(false);
        jXPanel9.add(this._jp_PlanningTechnicien, BorderLayout.CENTER);
        this._jp_PlanningTechnicien.setLstTechnicien();
        this._jp_PlanningTechnicien.setVisible(true);
        
    }//GEN-LAST:event_jXHyperlink14ActionPerformed

    private void jXHyperlink12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jXHyperlink12ActionPerformed
        
        this._jp_PlanningTechnicien.setVisible(false);
        jXPanel9.add(this._jp_ListeTechniciens, BorderLayout.CENTER);
        this._jp_ListeTechniciens.fillFields();
        this._jp_ListeTechniciens.setVisible(true);       
        
    }//GEN-LAST:event_jXHyperlink12ActionPerformed
    
    
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Frm_Application().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPanel jPanel1;
    private org.jdesktop.swingx.JXPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JToolBar.Separator jSeparator4;
    private javax.swing.JToolBar.Separator jSeparator5;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JToolBar jToolBar1;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink1;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink10;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink11;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink12;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink13;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink14;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink2;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink3;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink4;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink5;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink6;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink7;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink8;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink9;
    private org.jdesktop.swingx.JXPanel jXPanel1;
    private org.jdesktop.swingx.JXPanel jXPanel10;
    private org.jdesktop.swingx.JXPanel jXPanel11;
    private org.jdesktop.swingx.JXPanel jXPanel12;
    private org.jdesktop.swingx.JXPanel jXPanel13;
    private org.jdesktop.swingx.JXPanel jXPanel2;
    private org.jdesktop.swingx.JXPanel jXPanel3;
    private org.jdesktop.swingx.JXPanel jXPanel4;
    private org.jdesktop.swingx.JXPanel jXPanel5;
    private org.jdesktop.swingx.JXPanel jXPanel6;
    private org.jdesktop.swingx.JXPanel jXPanel7;
    private org.jdesktop.swingx.JXPanel jXPanel8;
    private org.jdesktop.swingx.JXPanel jXPanel9;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane1;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane10;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane11;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane12;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane13;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane14;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane15;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane16;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane2;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane3;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane4;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane5;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane6;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane7;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane8;
    private org.jdesktop.swingx.JXTaskPane jXTaskPane9;
    private org.jdesktop.swingx.JXTaskPaneContainer jXTaskPaneContainer1;
    private org.jdesktop.swingx.JXTaskPaneContainer jXTaskPaneContainer2;
    private org.jdesktop.swingx.JXTaskPaneContainer jXTaskPaneContainer3;
    private org.jdesktop.swingx.JXTaskPaneContainer jXTaskPaneContainer4;
    private org.jdesktop.swingx.JXTaskPaneContainer jXTaskPaneContainer5;
    private org.jdesktop.swingx.JXTaskPaneContainer jXTaskPaneContainer6;
    private org.jdesktop.swingx.JXTitledPanel jXTitledPanel1;
    private org.jdesktop.swingx.JXTitledSeparator jXTitledSeparator1;
    private org.jdesktop.swingx.JXTitledSeparator jXTitledSeparator2;
    private org.jdesktop.swingx.JXTitledSeparator jXTitledSeparator3;
    private org.jdesktop.swingx.JXTitledSeparator jXTitledSeparator4;
    private org.jdesktop.swingx.JXTitledSeparator jXTitledSeparator5;
    private org.jdesktop.swingx.JXTitledSeparator jXTitledSeparator6;
    private org.jdesktop.swingx.JXTitledSeparator jXTitledSeparator7;
    private org.jdesktop.swingx.JXTitledSeparator jXTitledSeparator8;
    private javax.swing.JButton jbtn_Deconnection;
    private javax.swing.JButton jbtn_Quitter;
    private org.jdesktop.swingx.JXList jl_ItrvAPlannifier;
    private org.jdesktop.swingx.JXList jl_ItrvAReplannifier;
    private org.jdesktop.swingx.JXList jl_ItrvPlannifier;
    private org.jdesktop.swingx.JXList jxlist_EmployeInt;
    private org.jdesktop.swingx.JXList jxlist_Techniciens;
    private org.jdesktop.swingx.JXTitledPanel jxtp_GestionClients;
    private org.jdesktop.swingx.JXTitledPanel jxtp_GestionInterventions;
    private org.jdesktop.swingx.JXTitledPanel jxtp_GestionPlanning;
    private org.jdesktop.swingx.JXTitledPanel jxtp_GestionSys;
    private org.jdesktop.swingx.JXTitledPanel jxtp_GestionTechniciens;
    // End of variables declaration//GEN-END:variables
    
    public Painter getPainter() {
        MattePainter mp = new MattePainter(Colors.LightBlue.alpha(0.5f));
        GlossPainter gp = new GlossPainter(Colors.White.alpha(0.3f),
                                GlossPainter.GlossPosition.TOP);
        PinstripePainter pp = new PinstripePainter(Colors.Gray.alpha(0.2f),
                                    45d);
        return (new CompoundPainter(mp, pp, gp));
    }
    
    public Painter getPainter2() {
	int width = 100;
	int height = 100;
        Color color1 = Colors.Black.color(0.5f);
	Color color2 = Colors.LightBlue.color(0.5f);
	LinearGradientPaint gradientPaint =
		new LinearGradientPaint(0.0f, 0.0f, width, height,
								new float[]{0.0f, 1.0f},
								new Color[]{color1, color2});
	MattePainter mattePainter = new MattePainter(gradientPaint);
	return mattePainter;
    }

    public void update(Object object) throws RemoteException {
        
//        System.out.println("-----------------------------------");
//        System.out.println("DEBUG MVC:");
//        System.out.println("Object Class: " + object.getClass());
//        System.out.println("Object Class [name]: " + object.getClass().getName());
//        System.out.println("Object Class [SimpleName]: " + object.getClass().getSimpleName());
//        System.out.println("Object Class [CanonicalName]: " + object.getClass().getCanonicalName());
//        System.out.println("Object Class [DeclaringClass]: " + object.getClass().getDeclaringClass());
//        System.out.println("Object Class [DeclaringClass]: " + object.getClass().getEnclosingClass());   
//        System.out.println("-----------------------------------");
//        System.out.println("Object Class: " + object.toString());
//        System.out.println("-----------------------------------");
        
        if (object.toString().compareToIgnoreCase("FactoryUC") == 0){
            this._jp_Informations.setNombreDeConnection(this._factory.getNombreConnections());
        }
        
        if (object.toString().compareToIgnoreCase("ListeTechniciens") == 0){
            this.jXTaskPane14.setExpanded(false);
            this._jp_Messages.nouveauMessage("La liste des techniciens a été modifiée, une raffraichissement a été éffectué.");
        }
 
        if (object.toString().compareToIgnoreCase("ListeEmployesInterne") == 0){
            this.jXTaskPane13.setExpanded(false);
            this._jp_Messages.nouveauMessage("La liste des employés interne été modifiée, une raffraichissement a été éffectué.");
        }        
        
        if (object.toString().compareToIgnoreCase("ListeInterventions") == 0){
            
            this.jXTaskPane12.setExpanded(false);
            this.jXTaskPane7.setExpanded(false);
            this.jXTaskPane8.setExpanded(false);
            this._jp_Messages.nouveauMessage("Les interventions ont été modifiées, une raffraichissement a été éffectué.");
        }
        
    }
    
}
